<style>
  .fly-home {
    position: relative;
    background: none;
  }

  .fly-home {
    background: url("/{$UserInfo['cover']}") no-repeat;
    background-position: center;
    background-size: cover;
  }
</style>
<div class="layui-container">
  <div class="fly-home fly-panel" style="margin-top: 15px;">
    <img src="/{$UserInfo['avatar']}" alt="贤心">
    <i class="iconfont icon-renzheng" title="Fly社区认证"></i>
    <h1>

      <i class="iconfont icon-nan">{$UserInfo['nickname']}</i>
      <!-- <i class="iconfont icon-nv"></i>  -->
      <i class="layui-badge fly-badge-vip">VIP1</i>
      <!--
    <span style="color:#c00;">（管理员）</span>
    <span style="color:#5FB878;">（社区之光）</span>
    <span>（该号已被封）</span>
    -->
    </h1>

    <p style="padding: 10px 0; color: #5FB878;">认证信息：layui 作者</p>

    <p class="fly-home-info">
      <i class="iconfont icon-kiss" title="飞吻"></i><span style="color: #FF7200;">66666 飞吻</span>
      <i class="iconfont icon-shijian"></i><span>{$UserInfo['createtime']}</span>
      <i class="iconfont icon-chengshi"></i><span>{$UserInfo['region']}</span>
    </p>

    <p class="fly-home-sign">（人生仿若一场修行）</p>

    <!-- <div class="fly-sns" data-user="">
    <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
    <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
  </div> -->

  </div>
</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$UserInfo['nickname']}最近的帖子（{$postCount}）</h3>
        <ul class="jie-row">
          {if condition="$postList"}
          {foreach $postList as $item}
          <li>
            <span class="fly-jing">{$item['cate']['name']}</span>
            <a href="{:url('home/index/info', ['postid' => $item.id,'cateid' => $item['cateid']])}" class="jie-title">
              {$item['title']}</a>
            <i>{$item['createtime']}</i>
            <em class="layui-hide-xs">{$item['visit_text']}点赞/{$item['comment']}回复</em>
          </li>
          {/foreach}
          {else /}
          <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i
              style="font-size:14px;">没有发表任何求解</i></div>
          {/if}
        </ul>
      </div>
    </div>

    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$UserInfo['nickname']}最近的回复</h3>
        <ul class="home-jieda">
          {if condition="$commentlist"}
          {foreach $commentlist as $item}
          <li>
            <p>
              <span>{$item['user']['nickname']}</span>
              <span>在{$item['createtime']}</span>
              在<a href="{:url('home/index/info', ['postid' => $item.id,'cateid' => $item['post']['cateid']])}"
                target="_blank">{$item['post']['title']}</a>中回答：
            </p>
            <div class="home-dacontent">
              {$item['content']}
            </div>
          </li>
          {/foreach}
          {else /}
          <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div>
          {/if}
        </ul>
      </div>
    </div>
  </div>
</div>